<#include "../common/layout.ftl"/>
<@layout>
<div class="well span=12">
	<h2>员工资料</h2>
	<!--button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button-->
	<hr/>
<div class="span5">
	
	<table class="table table-bordered table-striped">
		<tr>
			<td>工号</td>
			<td>${driver.job_number!""}</td>
		</tr>
		
		<tr>
			<td>真实姓名</td>
			<td>${driver.name!""}</td>
		</tr>
		<tr>
			<td>手机号码</td>
			<td>${driver.phone!""}</td>
		</tr>
		<tr>
			<td>所属公司</td>
			<td>${driver.license_num!""}</td>
		</tr>
		<!--tr>
			<td>MAC地址</td>
			<td>${driver.mac!""}</td>
		</tr>
		<tr>
			<td>银行卡号</td>
			<td> ${driver.bank_no!""}</td>
		</tr-->
		<tr>
			<td>身份证号码</td>
			<td>${driver.id_card!""}</td>
		</tr>
		<tr>
			<td>籍贯</td>
			<td>${driver.hometown!""}</td>
		</tr>
		<tr>
			<td>年龄</td>
			<td>${driver.age!""}</td>
		</tr>
		<tr>
			<td>驾龄</td>
			<td>${driver.driver_age!""}</td>
		</tr>
		<tr>
			<td>驾照</td>
			<td>${driver.driver_license!""}</td>
		</tr>
		<tr>
			<td>性别</td>
			<td>
				<#if driver.sex == 0>
				  	<span class="label label-info">男</span>
				  <#elseif driver.sex == 1>
				  	<span class="label label-warning">女</span>
				  <#else>
				  	<span class="label label-inverse">未知</span>
				  </#if>
			</td>
		</tr>
		<tr>
			<td>可接订单类型</td>
			<td>
				<input name="post"  disabled="true" type="checkbox" value="0" <#if driver.post?index_of("0")!=-1>checked</#if>>代驾员
	     		<input name="post"  disabled="true" type="checkbox" value="1"  <#if driver.post?index_of("1")!=-1>checked</#if>  />配送员
	     		<input name="post"  disabled="true" type="checkbox" value="2"  <#if driver.post?index_of("2")!=-1>checked</#if> />保镖员
	     		<input name="post"  disabled="true" type="checkbox" value="3"  <#if driver.post?index_of("3")!=-1>checked</#if>/>泊车员
			</td>
		</tr>
		<tr>
			<td>当前选择类型</td>
			<td>
				<#if driver.canpost??>
					<input name="post"  disabled="true" type="checkbox" value="0" <#if driver.canpost?index_of("0")!=-1>checked</#if>>代驾员
		     		<input name="post"  disabled="true" type="checkbox" value="1"  <#if driver.canpost?index_of("1")!=-1>checked</#if>  />配送员
		     		<input name="post"  disabled="true" type="checkbox" value="2"  <#if driver.canpost?index_of("2")!=-1>checked</#if> />保镖员
		     		<input name="post"  disabled="true" type="checkbox" value="3"  <#if driver.canpost?index_of("3")!=-1>checked</#if>/>泊车员
		     	</#if>
			</td>
		</tr>
	</table>
	
	
  </div>


<div class="span5">
	
	<table class="table table-bordered table-striped">
		<tr >
			<td colspan="2">
				<img style="width:50px;height:50px;" src="/upload/${driver.head!"default_avatar.gif"}"/>
			</td>
		</tr>
		<tr>
			<td>工作状态</td>
			<td>
			  <#if driver.status == 0>
			  	<span class="label label-success">空闲</span>
			  <#elseif driver.status == 1>
			  	<span class="label label-warning">待客</span>
			  <#elseif driver.status == 2>
			  	<span class="label label-important">代驾中</span>
			  <#elseif driver.status == 3>
			  	<span class="label label-info">休息</span>
			  <#elseif driver.status == 4>
			  	<span class="label label-inverse">备用</span>
			  <#else>
			  	<span class="label">其他</span>
			  </#if>
			</td>
		</tr>
		<tr>
			<td>冻结状态</td>
			<td>
				<#if driver.canuse == 0>
				  	<span class="label label-inverse">已冻结</span>
				  <#else>
				  	<span class="label label-success">正常</span>
				  </#if>
			</td>
		</tr>
		<tr>
			<td>经纬度</td>
			<td>${driver.latitude!} &nbsp;&nbsp;&nbsp;&nbsp; ${driver.longitude!}</td>
		</tr>
		<tr>
			<td>账户余额</td>
			<td>￥${driver.balance!}</td>
		</tr>
		<tr>
			<td>收入</td>
			<td>￥${driver.income!}</td>
		</tr>
		<tr>
			<td>未支付费用</td>
			<td>￥${driver.outstanding!}</td>
		</tr>
		<tr>
			<td>冻结费用</td>
			<td>￥${driver.freeze!}</td>
		</tr>
		<tr>
		   <td colspan="2">
			  身份证
		   </td>
		</tr>
		<tr>
		   <td colspan="2">
			<img style="width:50px;height:50px;" src="/upload/${driver.id_card_img!"default_avatar.gif"}"/>
		   </td>
		</tr>
		<tr>
		   <td colspan="2">
			  驾照图片
		   </td>
		</tr>
		<tr>
		   <td colspan="2">
			<img style="width:50px;height:50px;" src="/upload/${driver.driver_license_img!"default_avatar.gif"}"/>
		   </td>
		</tr>
	</table>
	
	
  </div>
</div>

<script>
   $(".span5 img").click(function(){ 
        var img_w = $(this).width(); 
        var img_h = $(this).height();
        var w = 404;
        if(img_w < w){
         	var height = (w*img_h)/img_w;
            $(this).css({"width":w,"height":height});
        }else{
        	$(this).css({"width":50,"height":50}); 
        }
    });
</script>
</@layout>